package com.wxy.demo.controller;

import com.wxy.demo.fasade.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 外观模式测试
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/9/19 14:25
 */
@RestController
public class FacadeController implements DemoService {

    @GetMapping("sayHello")
    @Override
    public String sayHello(@RequestParam String name) {
        return "hello " + name;
    }
}
